package com.cal.calonecal.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author 76004
 * @apiNote
 * @date 2023/6/17 0:09
 */
@TableName("problem")
@Data
public class Problem {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("0单选，1多选，2填空")
    private int type;

    private long userId;

    private String content;

    @ApiModelProperty("1表示已经放在试卷里的草稿，2表示已经发布")
    private int status;

    @TableField(exist = false)
    private List<Choose>chooses;

    @TableField(exist = false)
    @ApiModelProperty("用户作答答案")
    private Answer answer;

    @ApiModelProperty("题目标准答案")
    private String ans;

    @TableField(exist = false)
    private List<String>tags;

    @ApiModelProperty("独立的草稿题目没有这个")
    private Long paperId;

    private String extend;
}
